<%@ page language="java" import="org.whuims.pois.dao.StarDao"
         pageEncoding="UTF-8" %>
<%
    String idStr = request.getParameter("articleID");
    long id = Long.parseLong(idStr);
    String userName = (String) session.getAttribute("userName");
    String operation = request.getParameter("operation");
    System.out.println(id + "\t" + operation);
    StarDao dao = new StarDao();

    if (operation.equals("add")) {
        dao.add(id, userName);
    } else if (operation.equals("delete")) {
        dao.delete(id,userName);
    }

%>